package com.xyz.dao.mapper;


import com.xyz.dao.pojo.PlanCalendarVo;
import com.xyz.entity.pojo.UpkeepDbTask;
import com.xyz.entity.pojo.UpkeepPart;
import com.xyz.entity.pojo.UpkeepTask;
import com.xyz.entity.pojo.UpkeepWorkOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository("UpkeepDao")
public interface UpkeepDaoMapper {

        List<UpkeepWorkOrder> selectUpkeepWorkOrderList(Map<String,Object> map);

        void insertUpkeepPartList(@Param("upkeepPartList") List<UpkeepPart> upkeepPartList);

        void insertUpkeepTaskList(@Param("upkeepTaskList") List<UpkeepTask> upkeepTaskList);

        List<Map<String, Object>> selectUpkeepPartList(@Param("upkeepId") Long upkeepId);

        List<PlanCalendarVo> getUpkeepPlanGroup(@Param("year") Integer year, @Param("treeId") Long treeId, @Param("emId") Long emId);

        List<PlanCalendarVo> getUpkeepPlanListByYear(@Param("year") Integer year, @Param("treeId") Long treeId, @Param("emId") Long emId);

        List<Map<String, Object>> selectUpkeepCalendarEm(@Param("treeId")Long treeId, @Param("year")Integer year);

        List<UpkeepDbTask> selectUpkeepDbTaskByTemplateId(@Param("templateTaskId")Long templateTaskId);

        List<Map<String, Object>> selectUpkeepTaskPartByTemplateId(@Param("templateTaskId")Long templateTaskId);

}
